package com.zy.ivideo.repository;

import com.zy.ivideo.entity.CollectionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * 收藏模块数据仓库
 */
@Transactional
@Repository
public interface CollectionRepository extends JpaRepository<CollectionEntity,Long> {
    @Modifying
    void deleteByItemcodeAndUserid(String itemcode, long userid);
}
